package org.easy.db.generator;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Description:
 * @Author: wxl
 * @CreateTime: 2023/1/18 17:01
 */
@Data
@ApiModel(value = "生成代码实体类",description = "生成代码实体类")
public class GeneratorBody {

    @ApiModelProperty(value = "数据库",name = "dataBase")
    private String dataBase;
    @ApiModelProperty(value = "表名",name = "tableName")
    private String tableName;
    @ApiModelProperty(value = "父包名",name = "parentPackage")
    private String parentPackage;
    @ApiModelProperty(value = "模块名",name = "moduleName")
    private String moduleName;
    /**
     * 是否开启swagger 默认开启
     */
    @ApiModelProperty(value = "是否开启swagger 默认开启",name = "isUserSwagger")
    private boolean isUserSwagger;
    /**
     * 作者
     */
    @ApiModelProperty(value = "作者",name = "author")
    private String author;

    public GlobalConfigBuilder getGlobalConfig(){
        return new GlobalConfigBuilder(getTableName(),getModuleName(),getParentPackage(),getAuthor(),isUserSwagger());
    }

}
